#include<iostream>
#include<vector>
#include<string>
#include<cstring>
#include<error.h>
#include<cstdio>
#include<sys/types.h>
#include<sys/wait.h>
#include<unistd.h>
using namespace std;

class task{
public:
    typedef void (task::*FUNC_P)();
    FUNC_P tasks[4];
    void task1();
    void task2();
    void task3();
    void task4();
public:
    task()
    {
        tasks[0] = &task::task1;
        tasks[1] = &task::task2;
        tasks[2] = &task::task3;
        tasks[3] = &task::task4;
    }
    void executeTask(int pos);
}taskobj;

void task::task1(){
    cout<<"开始刷新屏幕"<<endl;
}

void task::task2(){
    cout<<"开始创建游戏界面"<<endl;
}
void task::task3(){
    cout<<"开始刷新技能 "<<endl;
}
void task::task4(){
    cout<<"开始检测更新"<<endl;
}

void task::executeTask(int pos){
    (this->*tasks[pos])();
}